<style scoped>
  .sfz {
    background: #eaeff3;
    overflow: hidden;
  }
  .head{
    height:50px;
    /*border-bottom: 2px solid #dedde3;*/
    display: flex;
    justify-content: center;
    align-items:center;
    background: #ffffff;
    box-shadow:0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    padding-top: 10px;
  }
  .head-left{
    position: absolute;
    width:40px;
    height:100%;
    left:0;
    top:0;
    color: #7f7a8e;
    text-align: center;
  }
  .head-left h1{
    margin-top: 22px;
  }
  .head-middle{
    font-size: 16px;
    color: #7f7a8e;
  }
  .head-right{
    position: absolute;
    right:14px;
    top:25px;
    color: #7f7a8e;
  }
  .content{
    width: 100%;
    margin-top: 60px;
    /*position: relative;*/
  }
  .account{
    position: absolute;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    width:100%;
  }
  @media screen and (max-width: 320px) {
    .account{
      bottom:60px;
    }
  }
  @media screen and (max-width:375px) and (min-width:321px) {
    .account{
      bottom:80px;
    }
  }
  @media screen and (min-width: 376px){
    .account{
      bottom:90px;
    }
  }
  .account h1{
    margin: 0 40px;
    text-align: center;
    color: #ffffff;
    padding: 4px 0;
    border-radius: 8px;
  }
  .account h1:first-child{
    background: -webkit-linear-gradient(top right,#F89947,#ED6174);
  }
  .account h1:last-child{
    background: -webkit-linear-gradient(top right,#91A5F8,#6379F8);
    margin-top: 8px;
  }
</style>

<template>
  <div class="sfz" ref="sfz">
    <div class="head" style="position: fixed;top: 0;width: 100%">
      <div class="head-left" @click="goBack"><h1 class="iconfont icon-xiangzuo1"></h1></div>
      <div class="head-middle"><h3>宽策略证券开户</h3></div>
      <div class="head-right"  @click="contact"><h1 class="iconfont icon-kefu3"></h1></div>
    </div>
    <div class="content" ref="content">
      <img src="../assets/img/twoopen.png" alt="" width="100%" height="100%">
      <div class="account">
        <h1 @click="trade">交易账户</h1>
        <h1 @click="cast">投顾账户</h1>
      </div>

    </div>

  </div>
</template>

<script>
  import host from '../config'

  export default {

    data () {
      return {

      }
    },
    mounted () {
      let h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
      var h1 = h - 60
      this.$refs.content.style.height = h1 + 'px'
    },
    methods: {
      goBack () {
        this.$router.push('./index')
      },
      contact () {
        window.location.href = 'tel:400-900-6687'
      },
      trade () {
        this.$router.push('./open2')
        this.$store.state.type = 'trade'
      },
      cast () {
        this.$router.push('./open2')
        this.$store.state.type = 'adviser'
      }
    }
  }
</script>
